package com.zut.fitness.service.impl;

import com.zut.fitness.common.Result;
import com.zut.fitness.mapper.HomeImageMapper;
import com.zut.fitness.pojo.HomeImage;
import com.zut.fitness.service.HomeImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeImageServiceImpl implements HomeImageService {

    @Autowired
    private HomeImageMapper homeImageMapper;
    @Override
    public Result<List<HomeImage>> getHomeImage() {
     HomeImage homeImage=new HomeImage();
    homeImage.setStatus("0");
        return Result.success(homeImageMapper.selectHomeImageList(homeImage));
    }
}
